package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.FRecommendService;
import org.springframework.stereotype.Service;

/**
 * Created by mobom on 2016/11/1.
 */

@Service
public class FRecommendServiceImpl extends BaseService implements FRecommendService {
    @Override
    public SuperRecordModel getRecommend(SuperRecordModel superRecordModel) {
        return getSqlSession().selectOne("FRecommendMapper.getRecommend",superRecordModel);
    }

    @Override
    public void deleteRecommend(SuperRecordModel superRecordModel) {
        getSqlSession().delete("FRecommendMapper.deleteRecommend",superRecordModel);
    }

    @Override
    public void insertRecommend(SuperRecordModel superRecordModel) {
        getSqlSession().insert("FRecommendMapper.insert",superRecordModel);
    }

    @Override
    public void updateRecommend(SuperRecordModel recommend) {
        getSqlSession().update("FRecommendMapper.update",recommend);
    }
}
